package com.atguigu.gmall.cart.api;

import com.atguigu.gmall.cart.bean.CartInfo;
import com.atguigu.gmall.common.bean.ResponseVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

public interface GmallCartApi {
    @ResponseBody
    @ApiOperation("根据userId查询选中的购物项列表")
    @GetMapping("/user/{userId}")
    public ResponseVo<List<CartInfo>> queryCheckedCartInfos(@PathVariable("userId")Long userId);
}
